const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"/2.txt");
fs.writeFile(filePath,"hello world",function(err){
    if(err){
        console.log(err);
    }
})
console.log("同步代码执行");